package com.tuozixuan.javafx.control;


import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class TexAreaDemo extends Application {
	
    public static void main(String[] args) {
        launch(args);
    }

	@Override
	public void start(Stage primaryStage) throws Exception {
		
		TextArea textArea = new TextArea();
		textArea.setPromptText("Enter your first name.");
		textArea.setPrefColumnCount(10);
		textArea.setLayoutX(103);
		textArea.setLayoutY(103);
		textArea.setPrefWidth(94);
		textArea.setPrefHeight(44);
		textArea.setBackground(null);
		textArea.setStyle("-fx-background-insets: 0");
        
        VBox vbox = new VBox();
        vbox.getChildren().addAll(textArea);
		
        Scene scene = new Scene(vbox, 2000, 1000);

        primaryStage.setScene(scene);
        primaryStage.sizeToScene();
        primaryStage.show();
	}

}
